<?php
/**
 * Created by PhpStorm.
 * User: zeopean
 * Date: 2015/8/21
 * Time: 15:17
 */
namespace App\Http\Requests;

use App\Http\Requests\Request;

class TagsRequest extends Request{
    public function authorize()
    {
        return true;
    }

    public function attributes()
    {
        return [
            'project_id'    =>  '项目标识',
            'invest_id'     =>  '投资人标识',
            'org_id'        =>  '投资机构标识',
            'tag_id'        =>  '标签标识',
            'tag'           =>  '标签名字',
        ];
    }


    public function rules()
    {
        return [
            'project_id'    =>  'alpha_num',
            'invest_id'     =>  'alpha_num',
            'org_id'        =>  'alpha_num',
            'tag_id'        =>  'alpha_num',
            'tag'           =>  'string'
        ];
    }
}